home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / Sources / src / origami / Makefile < prev    next >
Encoding:
Makefile  |  1996-09-27  |  1.4 KB  |  57 lines

  1. COMMON_HDRS=    ../h/token.h ../h/getmsg.h ../h/lg.h $(DEBUG_H) ../h/rc_comp_str.h
  2.  
  3. COMMON_OBJS=
  4.  
  5. include ../../Configfile
  6.  
  7. OBJS=          buffloop.o display.o fieldedit.o filec.o finds.o \
  8.            foldfiling.o foldhelp.o folding.o getmsg.o gettoken.o init.o \
  9.                keyboard.o keytab.o loop.o main.o messages.o misc.o oriedt.o \
  10.                prompts.o readfolds.o screen.o set.o shell.o signals.o string.o\
  11.                virtual.o writefolds.o $(COMMON_OBJS) $(ADD_ORI_FILES)
  12.  
  13. all:            check_common origami
  14.  
  15. origami:        $(OBJS) ../lib/orilib.a
  16.         $(LD) $(LDFLAGS) -o $@ $(OBJS) ../lib/orilib.a $(LIBS) $(TERMCAP_LIBS)
  17.  
  18. lint:        lint_test $(LINTFILES) awk
  19.         $(LINT) $(CPPFLAGS) $(LINTFLAGS) $(LINTFILES)
  20.  
  21. awk:        check_common permlist.h
  22.  
  23. do_check_common:check_common
  24.  
  25. #{{{}}}
  26. #{{{  internal compile rules
  27. permlist.h:     ../h/tokens tok2h.awk
  28.         $(AWK) -f tok2h.awk <../h/tokens >permlist.h
  29. #}}}
  30.  
  31. install:    check_common origami
  32.         $(BIN_INSTALL) -m 755 origami $(BIN_PATH)
  33.  
  34. deinstall:
  35.         rm -f $(BIN_PATH)/origami
  36.  
  37. empty_depend:
  38.         rm -f *dependencies*
  39.         > dependencies
  40.  
  41. pseudo_depend:    $(COMMON_HDRS) ../lib/*.h awk empty_depend
  42.         echo $(OBJS) $(COMMON_OBJS): *.h $(COMMON_HDRS) >>dependencies
  43.  
  44. depend:        $(COMMON_HDRS) awk empty_depend
  45.         $(GEN_DEPEND)
  46.  
  47. tags:        awk
  48.         ctags -t *.c
  49.  
  50. clean:
  51.         rm -f core symbol.out err.out $(OBJS) permlist.h *.u.c $(DEBUG_H) tags
  52.  
  53. clobber:        clean empty_depend
  54.         rm -f origami permlist.h $(CONFIG)
  55.  
  56. include dependencies
  57.